package com.xzy.seckill.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xzy.seckill.common.annotations.IsMobile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="用户视图对象", description="")
public class LoginVO {

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "昵称")
    private String nickname;


    @ApiModelProperty(value = "头像")
    private String head;


    @ApiModelProperty(value = "最后一次登录时间")
    private LocalDateTime lastLoginDate;

    @ApiModelProperty(value = "JWT访问令牌（登录后随请求头返回验证权限）")
    private String token;


}
